﻿@model ElCharro01.Models.Order

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Details</h2>
<table>
  <tr>
       
        <th>
            Nome Prodotto
        </th> 
        <th>
            Colore
        </th>
        <th>
            Taglia
        </th>
        <th>
            Quantità
        </th>
        <th>
        Prezzo Unitario
        </th>
  </tr>

   
@foreach (var item in Model.Detail)
{
    <tr>
    <td>@Html.DisplayFor(modelItem => item.Variant.Product.Nome)</td>
    <td>@Html.DisplayFor(modelItem => item.Variant.Colore)</td>
    <td>@Html.DisplayFor(modelItem => item.Variant.Taglia)</td>
    <td>@Html.DisplayFor(modelItem => item.Quantita)</td>
    <td>@Html.DisplayFor(modelItem => item.Variant.PrezzoUnitario) €</td>
    </tr>
  
}

<div>Costo Totale : @Model.Totale €</div>

@Html.ActionLink("Torna All'Order History","Index")
</table>